package com.hl.card.credit.service.remote;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.hl.card.credit.utill.ResponseObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RewardReslove {
    @Autowired
    private RewardService rewardService;

    public Object commonReward(String prodCode, String orderId, String parentRecommender, String recommender, String userId, String amount,String unfreezeTime) {
        Object obj=  rewardService.commonReward(prodCode,orderId,parentRecommender,recommender,userId,amount,unfreezeTime);
        String  str= JSON.toJSONString(obj);
        if(null!=str){
            return  JSONObject.parseObject(str, ResponseObject.class);
        }
        return null;
    }

}
